home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / checkpc.arc / CHECK.DOC < prev   
Encoding:
Text File  |  1987-01-17  |  2.2 KB  |  54 lines

  1. PC Magazine's  CHECK.COM  -  turbo-charges your batch files
  2.  vol 6  #3
  3.  
  4.      CHECK is a utility that will allow you alot more flexability while running
  5. batch files.  It is able to check for a variety of things such as files being
  6. present, file sizes, disk space, DOS version, etc ...  and return the values
  7. through the ERRORLEVEL variable that is available at the DOS level.
  8.  
  9.      syntax : CHECK keyword [parameter 1] [parameter 2] [parameter 3] ...
  10.  
  11.      CHECK must be run under DOS 2.0 or later
  12.  
  13. There are 16 keywords that can be used, following the keyword is what will be
  14. returned after being processed:
  15.  
  16.     KEYWORD                          ERRORLEVEL RETURNED
  17.     --------------------------       ----------------------------------------
  18.     FILESIZE  filespec               Length of File in K
  19.  
  20.     FILEFOUND filespec               0 : File Found
  21.                                      1 : File Not Found
  22.  
  23.     FILETEXT filespec 'string'       0 : 'string' was found in the file
  24.                                      1 : 'string' was not found
  25.  
  26.     DISKSPACE [d:]                   Number of whole 16K blocks free on
  27.                                      indicated or default drive
  28.  
  29.     MEMORY                           Number of 16K RAM modules
  30.  
  31.     VIDEOCARD                        0 : Monochrome Display Adapter
  32.                                      1 : Color Graphics Adapter
  33.                                      2 : Enhanced Graphics Adapter
  34.  
  35.     VIDEOMODE                        Current Video Mode    0 - 16
  36.  
  37.     MODEL                            Machine ID byte
  38.  
  39.     8087                             0 : 8087/80287 installed
  40.  or 80287                            1 : 8087/80287 not installed
  41.  
  42.     TIME                             Current Hour          0 - 23
  43.  
  44.     DAY                              Current Day           1 - 31
  45.  
  46.     MONTH                            Current Month         1 - 12
  47.  
  48.     VERSION                          Major DOS number      2 or 3
  49.  
  50.     KEYBOARD                         0 : Keyboard buffer empty
  51.                                      1 : Character waiting in buffer
  52.  
  53.     KEYPRESS                         ASCII code of key pressed
  54.